﻿<%@ Page Title="" Language="C#" MasterPageFile="frmMaestra.Master" AutoEventWireup="true" CodeBehind="frmMantenedorTipoHabitacion.aspx.cs" Inherits="SisHotel.frmMantenedorTipoHabitacion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Tipo Habitaci&oacute;n</h1>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-8 col-lg-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">
                    Registro
                </div>
                <div class="panel-body">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <label>ID</label>
                                <asp:Label ID="lblID" runat="server" Text="0" width="50%"></asp:Label>
                            </div>
                            <div class="form-group">
                                <label>Nombre</label>
                                <asp:TextBox ID="txtNombre" runat="server" class="form-control" width="50%"></asp:TextBox>
                            </div>
                            <div class="form-group">
                                <label>Precio</label>
                                <asp:TextBox ID="txtPrecio" runat="server" class="form-control" width="50%"></asp:TextBox>
                            </div>
                            <div class="form-group">
                                <label>Imagen</label>
                                <asp:FileUpload ID="fuTipoHabitacion" runat="server" />
                                <asp:ImageButton ID="imgTipoHabitacion" runat="server" Visible="False" />
                            </div>
                            <div class="form-group">
                                <label>Descripci&oacute;n</label>
                                <asp:TextBox ID="txtDescripcion" runat="server" class="form-control" width="100%" height="350px" TextMode="MultiLine"></asp:TextBox>
                            </div>
                            <div align="right">
                                <asp:Button ID="btnAgregar" runat="server" Text="Agregar" class="btn btn-default" OnClick="btnAgregar_Click" />
                                <asp:Button ID="btnGuardar" runat="server" Text="Guardar" class="btn btn-default" OnClick="btnGuardar_Click" />
                                <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" class="btn btn-default" OnClick="btnCancelar_Click" />
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-12" style="text-align:center;">
                            <asp:Label ID="lblMensaje" runat="server" Text="" ForeColor="Red"></asp:Label>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
            <asp:GridView ID="gvDatos" runat="server" class="table table-striped table-bordered table-hover" AutoGenerateColumns="False" OnRowDeleting="gvDatos_RowDeleting" OnSelectedIndexChanged="gvDatos_SelectedIndexChanged">
                <Columns>
                    <asp:BoundField DataField="IDTIPOHABITACION" HeaderText="#" />
                    <asp:BoundField DataField="NOMBRETIPOHAB" HeaderText="Nombre" />
                    <asp:BoundField DataField="DESCRIPCION" HeaderText="Descripción" />
                    <asp:BoundField DataField="PRECIO" HeaderText="Precio" />
                    <asp:ImageField DataImageUrlField="IMAGEN" HeaderText="Imagen">
                        <ControlStyle Height="40px" Width="40px" />
                    </asp:ImageField>
                    <asp:BoundField DataField="TIPOEDICION" HeaderText="TipoEdicion" />
                    <asp:CommandField SelectText="Editar" ShowSelectButton="True" />
                    <asp:CommandField SelectText="Eliminar" ShowDeleteButton="True" />
                </Columns>
            </asp:GridView>
        </div>
    </div>
</asp:Content>
